<div class="panel panel-default">
    <div class="panel-heading">热门标签</div>
    <div class="panel-body">
        <?php foreach ($tags as $row): ?>
            <a href="<?php echo Yii::$app->urlManager->createUrl(['tags/show', 'id' => $row->id]); ?>" class="btn btn-success btn-xs weibiao"><?php echo $row->name ?></a>
        <?php endforeach; ?>
    </div>
</div>